home *** CD-ROM | disk | FTP | other *** search
- function randomScreen(maxCount,handlePrefix)
- {
- tmpArray = scrn;
- for( i = 0; i < maxCount; i++ )
- {
- rndValue = Math.round(Math.random() * (tmpArray.length-1) )
- rndImage = tmpArray[ rndValue ]
- document.images[(handlePrefix+(i+1))].src = rndImage;
- //alert( tmpArray.length+","+rndValue+","+rndImage+","+(handlePrefix+(i+1)) )
- tmpArray = tmpArray.slice(0,rndValue).concat(tmpArray.slice(rndValue+1))
- }
- timer = setTimeout("randomScreen("+maxCount+",'"+handlePrefix+"')",30000);
- }